import {Entity, Column, PrimaryColumn} from 'typeorm';

@Entity()
export class Message {
  @PrimaryColumn()
  _id: string;

  @Column({ length: 32 })
  sn: string;

  @Column({ length: 32 })
  openid: string;

  @Column({ length: 32 })
  type: string;

  @Column({ length: 32 })
  is_receive: number;

  @Column('int')
  is_read: number;

  @Column({ length: 256 })
  content: string;
}
